// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link {
  color: var(--el-color-primary) !important;
}

/* 全局弹框里的内容是否需要屏幕范围内滚动 */
.el-dialog__body {
  //   max-height: calc(100vh - 214px) !important;
  //   overflow-y: auto !important;
  // padding: 0 20px !important;
}

.el-button{
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.el-button:not(.is-link,.is-disabled) {
  /* 添加默认按钮样式 */
  background: linear-gradient(135deg, #f0f2f5, #e6e8eb);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #606266;
  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
  &:active {
    transform: translateY(1px);
  }
  
  &.el-button--primary {
    background: linear-gradient(135deg, #409eff, #36a3ff);
    border: none;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
    color: #fff;
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(64, 158, 255, 0.4);
    }
    
    &:active {
      transform: translateY(1px);
    }
  }

  &.el-button--success {
    background: linear-gradient(135deg, #67c23a, #85ce61);
    border: none;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
    color: #fff;
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(103, 194, 58, 0.4);
    }
    &:active {
      transform: translateY(1px);
    }
  }

  &.el-button--warning {
    background: linear-gradient(135deg, #e6a23c, #f3b760);
    border: none;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.3);
    color: #fff;
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(230, 162, 60, 0.4);
    }
    &:active {
      transform: translateY(1px);
    }
  }

  &.el-button--danger {
    background: linear-gradient(135deg, #f56c6c, #ff8484);
    border: none;
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.3);
    color: #fff;
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(245, 108, 108, 0.4);
    }
    &:active {
      transform: translateY(1px);
    }
  }

  &.el-button--info {
    background: linear-gradient(135deg, #909399, #a6a9ad);
    border: none;
    box-shadow: 0 4px 12px rgba(144, 147, 153, 0.3);
    color: #fff;
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(144, 147, 153, 0.4);
    }
    &:active {
      transform: translateY(1px);
    }
  }
}

.el-dialog {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  .el-dialog__header {
    padding: 15px 20px;
  }
  
  .el-dialog__body {
    padding: 20px;
  }
  
  .el-form-item__label {
    font-weight: 600;
  }
  
  .el-input__inner {
    border-radius: 8px;
  }
}
